package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 检查项目费用表
 * @TableName dzm_his_inspectionfee
 */
public class DzmHisInspectionfee implements Serializable {
    /**
     *
     */
    private Integer insId;

    /**
     * 添加用户id
     */
    private Integer mid;

    /**
     * 医院id
     */
    private Integer hid;

    /**
     * 项目名称
     */
    private String inspection_name;

    /**
     * 项目类别
     */
    private String classType;

    /**
     * 项目单价
     */
    private BigDecimal unitPrice;

    /**
     * 项目成本
     */
    private BigDecimal cost;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 单位
     */
    private String unit;

    /**
     * 类别id
     */
    private Integer classId;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getInsId() {
        return insId;
    }

    /**
     *
     */
    public void setInsId(Integer insId) {
        this.insId = insId;
    }

    /**
     * 添加用户id
     */
    public Integer getMid() {
        return mid;
    }

    /**
     * 添加用户id
     */
    public void setMid(Integer mid) {
        this.mid = mid;
    }

    /**
     * 医院id
     */
    public Integer getHid() {
        return hid;
    }

    /**
     * 医院id
     */
    public void setHid(Integer hid) {
        this.hid = hid;
    }

    /**
     * 项目名称
     */
    public String getInspectionName() {
        return inspection_name;
    }

    /**
     * 项目名称
     */
    public void setInspectionName(String inspectionName) {
        this.inspection_name = inspectionName;
    }

    /**
     * 项目类别
     */
    public String getClassType() {
        return classType;
    }

    /**
     * 项目类别
     */
    public void setClassType(String classType) {
        this.classType = classType;
    }

    /**
     * 项目单价
     */
    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    /**
     * 项目单价
     */
    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * 项目成本
     */
    public BigDecimal getCost() {
        return cost;
    }

    /**
     * 项目成本
     */
    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    /**
     * 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 单位
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 单位
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * 类别id
     */
    public Integer getClassId() {
        return classId;
    }

    /**
     * 类别id
     */
    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisInspectionfee other = (DzmHisInspectionfee) that;
        return (this.getInsId() == null ? other.getInsId() == null : this.getInsId().equals(other.getInsId()))
            && (this.getMid() == null ? other.getMid() == null : this.getMid().equals(other.getMid()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getInspectionName() == null ? other.getInspectionName() == null : this.getInspectionName().equals(other.getInspectionName()))
            && (this.getClassType() == null ? other.getClassType() == null : this.getClassType().equals(other.getClassType()))
            && (this.getUnitPrice() == null ? other.getUnitPrice() == null : this.getUnitPrice().equals(other.getUnitPrice()))
            && (this.getCost() == null ? other.getCost() == null : this.getCost().equals(other.getCost()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getClassId() == null ? other.getClassId() == null : this.getClassId().equals(other.getClassId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInsId() == null) ? 0 : getInsId().hashCode());
        result = prime * result + ((getMid() == null) ? 0 : getMid().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getInspectionName() == null) ? 0 : getInspectionName().hashCode());
        result = prime * result + ((getClassType() == null) ? 0 : getClassType().hashCode());
        result = prime * result + ((getUnitPrice() == null) ? 0 : getUnitPrice().hashCode());
        result = prime * result + ((getCost() == null) ? 0 : getCost().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getClassId() == null) ? 0 : getClassId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", insId=").append(insId);
        sb.append(", mid=").append(mid);
        sb.append(", hid=").append(hid);
        sb.append(", inspectionName=").append(inspection_name);
        sb.append(", classType=").append(classType);
        sb.append(", unitPrice=").append(unitPrice);
        sb.append(", cost=").append(cost);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", unit=").append(unit);
        sb.append(", classId=").append(classId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
